/*
 * Copyright (C) Francisco Morero Peyrona. All rights reserved.
 *
 * This software is published under the terms of Open Source 
 * License version 1.1, a copy of which has been included with this
 * distribution in the License.txt file.  
 */

package jdbcmanager.diagram.swing;

/**
 * Implemented by <code>JBoard</code> and <code>JConnector</code> classes.
 * <p>
 * The interface contains those methods that are common to both components,
 * but not existing in <code>javax.swing.JComponenet</code> class.
 *
 * @author Francisco Morero Peyrona
 */

public interface DiagramComponent
{
   /**
    * Return <code>true</code> if the component is selected, otherwise <code>false</code>.
    * 
    * @return <code>true</code> if the component is selected, otherwise <code>false</code>.
    */
   public boolean isSelected();
   
   /**
    * Changes component selected status.
    * 
    * @param bSelected New status.
    */
   public void setSelected( boolean bSelected );
}
